package com.woniuxy.ticketorder.service;

import com.woniuxy.commnes.entity.ResponseResult;
import com.woniuxy.ticketorder.service.impl.CinemaServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

//fallback指定熔断后的第二个方法
@FeignClient(value = "ticket-cinema", fallback = CinemaServiceImpl.class)
public interface CinemaService {
    @GetMapping("orderLinkCinema/orderDto")
    ResponseResult<Double> add(@RequestParam("cinema") String cinema,
                               @RequestParam("hall") String hall,
                               @RequestParam("seat") String seat);
}